# -*- coding: utf-8 -*-

import os
import glob
import sys

#from encodings import gb2312
from encodings import utf_8
from encodings import utf_16_be

#from encodings import gbk
from encodings import mbcs   #

#import ideagen.main as main
#import ideagen.conftest as main
from features import mainw

#pathname = os.getcwd() + "\\plugins\\lists\\*.txt"
#print glob.glob(pathname)

sys.path[0].decode(sys.getfilesystemencoding())
#sys.setdefaultencoding('mbcs')

mainw.main()
"""
import profile
profile.run('mainw.main()', 'prof.txt')
import pstats
p = pstats.Stats("prof.txt")
p.sort_stats("time").print_stats()
print "done"
"""
